package com.duofan.gmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.duofan.gmall.common.utils.PageUtils;
import com.duofan.gmall.product.entity.CategoryEntity;
import com.duofan.gmall.product.vo.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author Vincent
 * @email wu_peizhen@126.com
 * @date 2023-05-07 21:43:27
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> catIds);

    /**
     * 查询完整路径
     * @return
     */
    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();

    Map<String,List<Catalog2Vo>> getCatalogJson();

}

